import { IDeviceItem } from '@/types/device';

interface IDeviceDetailOptions {
	label : string;
	value : string;
	isShow : boolean;
}


interface IDeviceDetail extends IDeviceItem {
	retail_price : string;
	month_trade : string;
	total_trade : string;
	activate_amount : string;
	assess_time : string;
	assess_time_amount : string;
	month_trade_statistics? : {
		[propname : string] : IDateItem;
	};
}

interface IDateItem {
	amount : number;
	count : number;
	date : string;
}

interface IGetDeviceDetailOptions {
	customer_id : number;
	model_sn : string;
	start_month : string;
	end_month : string;
}


export {
	IDeviceDetailOptions,
	IDeviceDetail,
	IGetDeviceDetailOptions,
	IDateItem
}